import request from '@/utils/request'

// 查询系统轮播通告列列表
export function listT_announce(query) {
  return request({
    url: '/backend/t_announce/list',
    method: 'get',
    params: query
  })
}

// 查询系统轮播通告列详细
export function getT_announce(id) {
  return request({
    url: '/backend/t_announce/' + id,
    method: 'get'
  })
}

// 新增系统轮播通告列
export function addT_announce(data) {
  return request({
    url: '/backend/t_announce',
    method: 'post',
    data: data
  })
}

// 修改系统轮播通告列
export function updateT_announce(data) {
  return request({
    url: '/backend/t_announce',
    method: 'put',
    data: data
  })
}

// 删除系统轮播通告列
export function delT_announce(id) {
  return request({
    url: '/backend/t_announce/' + id,
    method: 'delete'
  })
}
